import java.util.Scanner;

public class NumberOfPeople {
    private static int num;
    private static int temNum;

    public static void numJudge() throws NegativeMistake {
        Scanner input = new Scanner(System.in);

        try {
            temNum = input.nextInt();
        } catch (Exception e) {
            System.out.println("The input value should be a INTEGER");
            e.printStackTrace();
        }
        if (temNum < 0) {
            throw new NegativeMistake("The input value should be a POSITIVE NUMBER");
        }
        num = temNum;
    }

    public static int getNum() {

        return num;
    }
}